const url = require('url')

let targetUrl = 'https://www.taobao.com'
let httpUrl = './sxs/qiandan/laochen.html'

console.log(url.resolve(targetUrl, httpUrl))